<?php

namespace app\common\model;

use think\Model;

class System extends Model
{
    //添加
    public function  creat(){

    }
    //删除
    public function delete(){

    }
    //分类
    public function liste(){

    }
    //修改
    public function updateSystems($id,$data){
        $validate = new \app\common\validate\Systems();
        if (!$validate->scene('add')->check($data)){
            return $validate->getError();
        }
        $result = $this->where('id',1)->update($data);
        if ($result){
            return 1;
        }else{
            return '修改失败';
        }
    }
}
